﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace A52流的读写器   //只能操作文本
{
    class Program
    {
        //读取器
        static void Main1(string[] args)
        {

            using (var fs = File.OpenRead(@"C:\Users\Administrator\Desktop\诛仙.txt"))
            {
                using (StreamReader reder = new StreamReader(fs,Encoding.GetEncoding("GB2312")))
                {
                    while (true)
                    {
                        Console.WriteLine(reder.ReadLine());
                        Console.ReadLine();

                        //下面代码一次读一个字符
                        // Console.Write((char)reder.Read()) ;
                        // Thread.Sleep(100); //线程暂定0.1秒
                    }
                }
            }
         
        }

    }
}
